package com.ruikc.study.demo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;

import java.io.Serial;


/**
 * 销售方表，记录销售方的信息 实体类。
 *
 * @author zhiyuan
 * @since 2025-02-22
 */
@Table("vendor")
public class Vendor implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 销售方的唯一标识符，自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer vendorId;

    /**
     * 销售方编号
     */
    private String vendorCode;

    /**
     * 销售方名称
     */
    private String title;

    /**
     * 销售方联系人
     */
    private String contact;

    /**
     * 销售方联系电话
     */
    private String phone;

    /**
     * 销售方联系地址
     */
    private String address;

    /**
     * 销售方记录的创建时间
     */
    private String createdAt;

    /**
     * 销售方记录的更新时间
     */
    private String updatedAt;

    /**
     * 销售方记录的删除时间，若未删除则为空
     */
    private String deletedAt;

    /**
     * 客户余额
     */
    private BigDecimal leftAmount;

    public Integer getVendorId() {
        return vendorId;
    }

    public void setVendorId(Integer vendorId) {
        this.vendorId = vendorId;
    }

    public String getVendorCode() {
        return vendorCode;
    }

    public void setVendorCode(String vendorCode) {
        this.vendorCode = vendorCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

    public BigDecimal getLeftAmount() {
        return leftAmount;
    }

    public void setLeftAmount(BigDecimal leftAmount) {
        this.leftAmount = leftAmount;
    }

}
